projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e2905
)
GdkSelectionOutputStreamX11: Plug a memory leak
author
Timm Bäder
<mail@baedert.org>
Tue, 6 Mar 2018 18:47:18 +0000
(19:47 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 6 Mar 2018 18:47:18 +0000
(19:47 +0100)
gdk/x11/gdkselectionoutputstream-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkselectionoutputstream-x11.c
b/gdk/x11/gdkselectionoutputstream-x11.c
index 3587b95be78b73cb8922bb50c6e9cfdfbeb5ac71..106c6b780c3332136b4161457d29ba94097b04f0 100644
(file)
--- a/
gdk/x11/gdkselectionoutputstream-x11.c
+++ b/
gdk/x11/gdkselectionoutputstream-x11.c
@@
-93,6
+93,12
@@
gdk_x11_pending_selection_notify_new (Window window,
return pending;
}
+static void
+gdk_x11_pending_selection_notify_free (GdkX11PendingSelectionNotify *notify)
+{
+ g_slice_free (GdkX11PendingSelectionNotify, notify);
+}
+
static void
gdk_x11_pending_selection_notify_require (GdkX11PendingSelectionNotify *notify,
guint n_sends)
@@
-145,6
+151,8
@@
gdk_x11_pending_selection_notify_send (GdkX11PendingSelectionNotify *notify,
gdk_x11_get_xatom_name_for_display (display, notify->xevent.target),
error));
}
+
+ gdk_x11_pending_selection_notify_free (notify);
}
static gboolean